package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.ResidentEntity;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.entity.UserWithCarNumber;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserWithCarNumberDao extends BaseMapper<UserWithCarNumber> {
    @Select("SELECT * FROM user_drivers_datcher WHERE user_id = #{userId}")
    UserWithCarNumber findByUserId(int userId);

}
